package com.appcheck.recording.utils;

import android.util.Log;

public final class Logger {
	private boolean flag;
	private String tag;
	private static Logger LOG = null;
	  
	public static void initLogger(String paramString, boolean paramBoolean){
	    if (LOG == null){
	    	LOG = new Logger(paramString, true);
	    	return;
	    }
	    Log.w(paramString, "Logger already initialized");
	}
	
	public static void ERROR(String paramString){
		if (LOG != null) {
			Log.e(LOG.tag, paramString);
		}
	}
  
	public static void WARN(String paramString){
		if (LOG != null) {
			Log.w(LOG.tag, paramString);
		}
	}
  
	public static void INFO(String paramString){
		if (LOG != null) {
			Log.i(LOG.tag, paramString);
		}
	}
  
	public static void DEBUG(String paramString){
		if (LOG != null) {
			Log.d(LOG.tag, paramString);
		}
	}
	
	public static void ERROR(String paramString, Throwable paramThrowable){
	    if (LOG != null) {
	      Log.e(LOG.tag, paramString, paramThrowable);
	    }
	}
  
	public static void WARN(String paramString, Throwable paramThrowable){
	    if (LOG != null) {
	      Log.w(LOG.tag, paramString, paramThrowable);
	    }
	}
  
	private Logger(String paramString, boolean paramBoolean){
		this.tag = paramString;
		this.flag = paramBoolean;
	}
}
